<?php 

include('../Connections/AccesosBD.php');

$return = '';
if (isset($_POST['return'])){
$return = $_POST['return'];
}
$noClose = '';
if (isset($_POST['noClose'])){
$noClose = $_POST['noClose'];
}
?>

<input type="button" value="Buscar" onclick="searchProvs()" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>Razón Social</td>
    <td>
      <input name="t_lp_noms" type="text" id="t_lp_noms" size="40" maxlength="40" />
    </td>
  </tr>
  <tr>
    <td>DNI / RUC :</td>
    <td>
      <input name="t_lp_nif" type="text" id="t_lp_nif" size="20" maxlength="12" />
    </td>
  </tr>
  <tr>
    <td>Contacto :</td>
    <td>
      <input name="t_lp_con" type="text" id="t_lp_con" size="45" maxlength="40" />
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td colspan="2">
    <div id="d_resprv" style="max-height:300px; overflow:	auto" ></div>    </td>
  </tr>
</table>

<script type="text/javascript">
function searchProvs(){
	$('#d_resprv').loadx('Consultas/Opers/queryProvs.php',{
		oper : 'view',
		finder : '<?php echo $return;?>',
		noClose : '<?php echo $noClose;?>',
		t_lp_noms : GEBI('t_lp_noms').value,
		t_lp_nif : GEBI('t_lp_nif').value,
		t_lp_con : GEBI('t_lp_con').value
	});
}
</script>